package com.property;

//使用set方法注入值
public class Book {

    public String bookname;

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

   public void test(){
       System.out.println("书的名字是"+bookname);
   }


}
